<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>分割线 - 组件演示</title>
    <link rel="stylesheet" href="../css/style.css">
</head>
<body>
    <div class="container">
        <header class="header">
            <h1>🚀 openHarmony_Cordova_NutpiDesign</h1>
            <p class="subtitle">组件演示 - 分割线组件</p>
        </header>

        <nav class="demo-nav">
            <a href="../index.html" class="nav-back">← 返回首页</a>
        </nav>

        <main class="main-content">
            <section class="demo-section">
                <h2>📏 分割线演示</h2>
                
                <div class="demo-content">
                    <h3>水平分割线</h3>
                    <p>这是第一部分内容</p>
                    <hr style="border: none; border-top: 1px solid #ddd; margin: 20px 0;">
                    <p>这是第二部分内容</p>

                    <h3>带文字的分割线</h3>
                    <div style="display: flex; align-items: center; margin: 20px 0;">
                        <div style="flex: 1; border-top: 1px solid #ddd;"></div>
                        <span style="margin: 0 16px; color: #999;">或</span>
                        <div style="flex: 1; border-top: 1px solid #ddd;"></div>
                    </div>

                    <h3>虚线分割线</h3>
                    <hr style="border: none; border-top: 1px dashed #ddd; margin: 20px 0;">

                    <h3>彩色分割线</h3>
                    <hr style="border: none; border-top: 2px solid var(--primary-color); margin: 20px 0;">

                    <h3>垂直分割线</h3>
                    <div style="display: flex; gap: 20px; margin: 20px 0;">
                        <div>左侧内容</div>
                        <div style="border-left: 1px solid #ddd;"></div>
                        <div>右侧内容</div>
                    </div>
                </div>
            </section>

            <section class="demo-section">
                <h2>使用代码</h2>
                <pre><code>// 基础分割线
&lt;hr&gt;

// 自定义样式
&lt;hr style="border-top: 2px solid #1890ff;"&gt;

// 带文字的分割线
&lt;div style="display: flex; align-items: center;"&gt;
    &lt;div style="flex: 1; border-top: 1px solid #ddd;"&gt;&lt;/div&gt;
    &lt;span style="margin: 0 16px;"&gt;文字&lt;/span&gt;
    &lt;div style="flex: 1; border-top: 1px solid #ddd;"&gt;&lt;/div&gt;
&lt;/div&gt;</code></pre>
            </section>
        </main>

        <footer class="footer">
            <p>&copy; 2025 OpenHarmony 三方库适配中心 | MIT License</p>
        </footer>
    </div>

    <style>
        .demo-content {
            background: var(--bg-light);
            padding: 20px;
            border-radius: 8px;
        }

        .demo-content h3 {
            margin-top: 20px;
            margin-bottom: 10px;
            font-size: 14px;
            color: var(--text-primary);
        }

        .demo-content p {
            margin: 0;
            color: var(--text-secondary);
            font-size: 14px;
        }
    </style>
</body>
</html>
